package me.spring.cloud.common.components.mds.exception;

import me.spring.cloud.common.components.mds.exception.code.DyDataSourceCode;
import me.spring.cloud.common.components.rpc.response.CommonResponse;
import me.spring.cloud.common.components.exception.exceptions.SystemException;

public class DynamicDataSourceException extends SystemException {

  public DynamicDataSourceException(DyDataSourceCode code) {
    super(code);
  }

  public DynamicDataSourceException(DyDataSourceCode code, String message) {
    super(code, message);
  }

  public DynamicDataSourceException(DyDataSourceCode code, Throwable t) {
    super(code, t);
  }

  @Override
  public CommonResponse<?> handle() {
    return super.handle();
  }
}